package designpatterns.observer;

public class ConcreteObserverA implements Observer{
    private int observerState;

    public int getObserverState() {
        return observerState;
    }

    public void setObserverState(int observerState) {
        this.observerState = observerState;
    }

    @Override
    public void update(int state) {
        setObserverState(state);
        System.out.println("OB-A 现在状态是" + getObserverState());
    }
}
